﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="PurchaseOrderDetali.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.ProcureManage.PurchaseOrderDetali"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div id="note">
            采购单基本信息</div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th>
                    <asp:Label ID="Label1" runat="server" Text="采购单名称："></asp:Label>
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPurseOrder"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblHospital" runat="server" Text="采购医疗机构："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="txtHospital" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblAmount" runat="server" Text="采购总金额："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="txtAmount" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="listcon">
        <div class="note">
            采购单产品明细</div>
        <div class="note2">
        </div>
        <asp:GridView ID="gvwPurseOrderDetail" runat="server" AutoGenerateColumns="False"
            OnRowDataBound="gvwPurseOrderDetail_RowDataBound" OnRowCommand="gvwPurseOrderDetail_RowCommand"
            Width="100%" EmptyDataText="暂未添加采购单产品明细！">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
                <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
                <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
                <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
                <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
                <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
                <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
                <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
                <asp:BoundField DataField="PurchaseCount" HeaderText="数量" />
                <asp:BoundField DataField="Price" HeaderText="采购价" DataFormatString="{0:N4}" />
                <asp:BoundField DataField="Amount" HeaderText="金额" />
                <asp:BoundField DataField="DistributeCount" HeaderText="已配送" />
                <asp:BoundField DataField="WarehouseCount" HeaderText="已入库" />
                <asp:BoundField DataField="ReturnCount" HeaderText="已退货" />
                <asp:TemplateField HeaderText="配送状态">
                    <ItemTemplate>
                        <asp:Literal runat="server" ID="ltlOrderDetailState" Text='<%# Eval("OrderDetailState") %>'></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <hz:HzLinkButton ID="lbnCheck" runat="server" Text="审核" CommandName="check" CommandArgument='<%# Eval("OrderDetailState")+","+ Eval("OrderDetailID") %>'
                            OnClientClick="return confirm('确认提交该采购单吗？')"></hz:HzLinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText=" ">
                    <HeaderTemplate>
                        <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwPurseOrderDetail','addTable_chkAll'); " />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input type="checkbox" name="chkOrderDetail" <%# ((int)Eval("OrderDetailState")!=0)?"disabled":"" %>
                            id="chkUser" value='<%#Eval("OrderDetailID")%>' onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwPurseOrderDetail','addTable_chkAll');" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span>说明信息</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnSubmit" runat="server" Text="提交审核" CssClass="btn" OnClick="btnSubmit_Click" />
    </div>
</asp:Content>
